package com.luych.toolbox.common.feign.view.docker.service;

import com.luych.toolbox.common.enums.DockerRegistryStatus;
import com.luych.toolbox.common.feign.FeignView;
import com.luych.toolbox.common.feign.view.base.service.UserView;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("仓库数据返回")
public class DockerRegistryView extends FeignView {

    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("URL")
    private String url;
    @ApiModelProperty("账户")
    private String user;
    @ApiModelProperty("状态")
    private DockerRegistryStatus status;
    @ApiModelProperty("责任人")
    private UserView owner;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public DockerRegistryStatus getStatus() {
        return status;
    }

    public String getStatusValue() {
        return status == null ? null : status.getValue();
    }

    public void setStatus(DockerRegistryStatus status) {
        this.status = status;
    }

    public UserView getOwner() {
        return owner;
    }

    public String getOwnerId() {
        return owner == null ? null : owner.getId();
    }

    public void setOwner(UserView owner) {
        this.owner = owner;
    }
}
